package com.yanqu.road.server.manger.config.grandchild.talent.effect;

import com.yanqu.road.server.manger.config.grandchild.talent.entity.TalentTriggerSkillParam;
import com.yanqu.road.server.manger.config.grandchild.talent.entity.TalentTriggerSkillResult;
import com.yanqu.road.server.manger.config.grandchild.talent.entity.TalentTriggerSkillResultBuilder;

import java.util.HashMap;
import java.util.Map;

public class SkillEffect107 implements ISkillEffect {

    @Override
    public TalentTriggerSkillResult getResult(TalentTriggerSkillParam param) {
        Integer changeValue = param.getSkillInfo().getParamList().get(0);
        int occupation = param.getGrandChild().getOccupation();
        Map<Integer, Integer> flairChangeMap = new HashMap<>();
        flairChangeMap.put(occupation - 1, changeValue);
        return TalentTriggerSkillResultBuilder.aTalentTriggerSkillResult().setAddFlairList(flairChangeMap).setActive(true).build();
    }

}
